package chixing.day08._abstract.static_demo;

public class StudentTest {
    public static void main(String[] args) throws ClassNotFoundException {
        //JVM加载Student类
        Class.forName("chixing.day08._abstract.static_demo.Student");
//        Student stu1 = new Student();
//        // 实例变量 ： 对象名.属性名
//        stu1.stuNo = 101;
//        stu1.stuName = "allen";
//        stu1.stuTelno = 1847388439L;
//
//        Student stu2 = new Student();
//        stu2.stuNo = 102;
//        stu2.stuName = "walter";
//        stu2.stuTelno = 1377893933L;
//
//        //类变量： 类名.属性名
//        String sname = Student.schoolName;
//        System.out.println(stu1.schoolName);
//        System.out.println(stu2.schoolName);
//
//
//        Student.schoolName = "北京大学";
//        System.out.println(stu1.schoolName);
//        System.out.println(stu2.schoolName);
//

    }
}
